<?php
class ModelAccountOrderAutoSign extends Model {
    const ORDER_STATUS_ID_UNPAID = 0;

    /**
     * @param $order_id
     *
     * @return array|null
     */
    public function findByOrderId($order_id)
    {
        $sql = "SELECT * FROM `" . DB_PREFIX . "order_auto_sign` WHERE order_id = '" . (int) $order_id . "'";

        $query = $this->db->query($sql);

        return $query->row;
    }
}